<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3新特性</title>
    <link rel="stylesheet" href="public.css">
    <style>
        .rotage {
            background-color: red;
            transform: rotate(30deg);
            -ms-transform: rotate(30deg);
            /* IE 9 */
            -webkit-transform: rotate(30deg);
            /* Safari and Chrome */
        }
    </style>
</head>

<body>
    <div class="box">盒子</div>
    <div class="box rotage">盒子2</div>
</body>

</html>